package com.Adapter;

public enum AdapterType {
  TEAM_ADAPTER, PLAYER_ADAPTER, MATCH_ADAPTER, GOAL_DIFF_ADAPTER, NOT_FOUND, GOAL_SCORE;


  private static final String team = "team";
  
  private static final String goalDiff = "goalDiff";
  
  private static final String player = "player";  
  
  private static final String match = "match";
  
  
public static AdapterType fromXMLString(String adapter){
	if(adapter.equals(team)){
		return AdapterType.TEAM_ADAPTER;
	}  else if(adapter.equals(player)){
		return AdapterType.PLAYER_ADAPTER;
	} else if(adapter.equals(match)){
		return AdapterType.MATCH_ADAPTER;
	}  else if(adapter.equals(goalDiff)){
		return AdapterType.GOAL_DIFF_ADAPTER;
	} else {
		return AdapterType.NOT_FOUND;
	}
	}
}